package com.my.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 产康评价
 * </p>
 *
 * @author 闫亚茹
 * @since 2018-08-25
 */
@TableName("evaluate")
public class Evaluate extends Model<Evaluate> {

    private static final long serialVersionUID = 1L;

	@TableField("areaid")
	private Long areaid;
	public Long getAreaid() { return areaid; }
	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}
	private Long id;
    /**
     * 关联ID  外来关联销售 月子中心关联房间
     */
	@TableField("relation_id")
	private Long relationId;
    /**
     * 评价星级
     */
	private Integer star;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;

	/*产康id*/
	@TableField("project_id")
	private Long projectId;



	/*判断房间是否退房*/
	@TableField("state")
	private int state;

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}


    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getRelationId() {
		return relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	public Integer getStar() {
		return star;
	}

	public void setStar(Integer star) {
		this.star = star;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Evaluate{" +
				"id=" + id +
				", relationId=" + relationId +
				", star=" + star +
				", createTime=" + createTime +
				", projectId=" + projectId +
				", state=" + state +
				'}';
	}
}
